/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-08
 * 17:48
 */
public class Test {
    public static void main(String[] args) {
        int[] arr={1,1,4,5,5};
       int s= fun(arr);
        System.out.println(s);
    }
    public static int fun(int[] arr){
        int s=0;
        for (int i = 0; i < arr.length; i++) {
            s^=arr[i];
        }
        return s;
    }
}
